/**
 * File: 
 * Proj/Lab:
 * Author:
 * Date:
 * Section:
 * Email:
 */
package proj;

/**
 * @author Ben
 *
 */
public class Course 
{
	private String courseCode;
	private String courseName;
	private String description;
	private String[] prereqs;
	private int[] availability;
	private int numCreds;
	
	public Course(String cCode, String cName, String desc, String[] pReqs, int[] avail, int creds)
	{
		courseCode = cCode;
		courseName = cName;
		description = desc;
		prereqs = pReqs;
		availability = avail;
		numCreds = creds;
	}

	public String getCourseCode() 
	{
		return new String(courseCode);
	}

	public void setCourseCode(String cCode) 
	{
		this.courseCode = cCode;
	}

	public String getCourseName() 
	{
		return new String(courseName);
	}

	public void setCourseName(String cName) 
	{
		this.courseName = cName;
	}

	public String getDescription() 
	{
		return new String(description);
	}

	public void setDescription(String desc) 
	{
		this.description = desc;
	}

	public String[] getPrereqs() 
	{
		String[] trans = new String[prereqs.length];
		
		for(int i = 0; i != prereqs.length; i++)
		{
			trans[i] = new String(prereqs[i]);
		}
			
		return trans;
	}

	public void setPrereqs(String[] pReqs) 
	{
		this.prereqs = pReqs;
	}

	public int[] getAvailability() 
	{
		return availability;
	}

	public void setAvailability(int[] avail) 
	{
		this.availability = avail;
	}

	public int getNumCreds() 
	{
		return numCreds;
	}

	public void setNumCreds(int creds) 
	{
		this.numCreds = creds;
	}
}
